package com.lantian.uavmaterial.service.impl;

import java.util.List;

import com.lantian.uavmaterial.domain.UavFlightcontrolSystem;
import com.lantian.uavmaterial.mapper.UavFlightcontrolSystemMapper;
import com.lantian.uavmaterial.service.IUavFlightcontrolSystemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 飞控系统Service业务层处理
 * 
 * @author lantian
 * @date 2025-11-06
 */
@Service
public class UavFlightcontrolSystemServiceImpl implements IUavFlightcontrolSystemService
{
    @Autowired
    private UavFlightcontrolSystemMapper uavFlightcontrolSystemMapper;

    /**
     * 查询飞控系统
     * 
     * @param flightControlId 飞控系统主键
     * @return 飞控系统
     */
    @Override
    public UavFlightcontrolSystem selectUavFlightcontrolSystemByFlightControlId(String flightControlId)
    {
        return uavFlightcontrolSystemMapper.selectUavFlightcontrolSystemByFlightControlId(flightControlId);
    }

    /**
     * 查询飞控系统列表
     * 
     * @param uavFlightcontrolSystem 飞控系统
     * @return 飞控系统
     */
    @Override
    public List<UavFlightcontrolSystem> selectUavFlightcontrolSystemList(UavFlightcontrolSystem uavFlightcontrolSystem)
    {
        return uavFlightcontrolSystemMapper.selectUavFlightcontrolSystemList(uavFlightcontrolSystem);
    }

    /**
     * 新增飞控系统
     * 
     * @param uavFlightcontrolSystem 飞控系统
     * @return 结果
     */
    @Override
    public int insertUavFlightcontrolSystem(UavFlightcontrolSystem uavFlightcontrolSystem)
    {
        return uavFlightcontrolSystemMapper.insertUavFlightcontrolSystem(uavFlightcontrolSystem);
    }

    /**
     * 修改飞控系统
     * 
     * @param uavFlightcontrolSystem 飞控系统
     * @return 结果
     */
    @Override
    public int updateUavFlightcontrolSystem(UavFlightcontrolSystem uavFlightcontrolSystem)
    {
        return uavFlightcontrolSystemMapper.updateUavFlightcontrolSystem(uavFlightcontrolSystem);
    }

    /**
     * 批量删除飞控系统
     * 
     * @param flightControlIds 需要删除的飞控系统主键
     * @return 结果
     */
    @Override
    public int deleteUavFlightcontrolSystemByFlightControlIds(String[] flightControlIds)
    {
        return uavFlightcontrolSystemMapper.deleteUavFlightcontrolSystemByFlightControlIds(flightControlIds);
    }

    /**
     * 删除飞控系统信息
     * 
     * @param flightControlId 飞控系统主键
     * @return 结果
     */
    @Override
    public int deleteUavFlightcontrolSystemByFlightControlId(String flightControlId)
    {
        return uavFlightcontrolSystemMapper.deleteUavFlightcontrolSystemByFlightControlId(flightControlId);
    }

    @Override
    public UavFlightcontrolSystem selectUavFlightcontrolSystemByUavId(String uavId) {
        return uavFlightcontrolSystemMapper.selectUavFlightcontrolSystemByUavId(uavId);
    }
}
